/*
 * @Description:
 * @Author:
 * @Date: 2024-10-07 09:02:48
 * @LastEditTime: 2024-10-07 10:08:17
 * @LastEditors: XXX
 */
import XsDemo from './modules/demo.js'

document.querySelector('.button.open').addEventListener('click', () => {
  document.querySelector('xs-demo').show()
})

document.querySelector('.button.modify').addEventListener('click', () => {
  const newName = document.querySelector('input').value
  console.log('newName :>> ', newName);
  const xsDemo = document.querySelector('xs-demo')
  xsDemo.setAttribute('data-name', newName)
})
